const { removeSync } = require('fs-extra')
const { join } = require('path')

const getArguments = process.argv.splice(2) || []
const arg = String(getArguments)

let filename = 'build'
if (arg === 'dev') {
  filename = 'devbuild'
}

const targetPath = join(__dirname, filename)

removeSync(targetPath)